var root=ui("$");
var nf = sm("do_Notification");
var app = sm("do_App");
var page = sm("do_Page");
var lScore = 5;//评分
var logisticsStar = ui("logisticsStar");
var content = ui("deliveryText");
var lData = mm("do_ListData");
logisticsStar.bindItems(lData);
//评分星星
lData.removeAll();
var lStarImg=[];
for(var j=0;j<5;j++){
	lStarImg.push({"starImg":"source://image/common/x_01.png"});
}
lData.addData(lStarImg);
logisticsStar.refreshItems();
//评分
logisticsStar.on("touch", function(data) {
	var lTag = data + 1;
	lScore = lTag;
	lData.removeAll();
	var lStarListNew = [];
	for(var m=0;m<lTag;m++){
		lStarListNew.push({"starImg":"source://image/common/x_01.png"});
	}
	for(var n=0;n<5-lTag;n++){
		lStarListNew.push({"starImg":"source://image/common/x_02.png"});
	}
	lData.addData(lStarListNew);
	logisticsStar.refreshItems();
	page.fire("lStarNum",{"num":lScore,"content":content.text});
});
